function enter(pi) {
    if (pi.getQuestStatus(20301) == 1 || pi.getQuestStatus(20302) == 1 || pi.getQuestStatus(20303) == 1 || pi.getQuestStatus(20304) == 1 || pi.getQuestStatus(20305) == 1) {
        if (pi.getPlayerCount(913002000) == 0) {
            if (pi.haveItem(4032179, 1)) {
                pi.removeNpc(913002000, 1104101);
                var map = pi.getMap(913002000);
                map.killAllMonsters(false);
                map.spawnNpc(1104101, new java.awt.Point(2517, 88));
                pi.warp(913002000, 0);
            } else {
                pi.playerMessage("You do not have the Erev Search Warrent to do so, please get it from Nineheart.");
            }
        } else {
            pi.playerMessage("The forest is already being searched by someone else. Better come back later.");
        }
    } else {
        pi.warp(130010010, "out00");
    }
}
